source /home/work_nfs7/xlgeng/.bashrc
# conda activate gxl_salmonn3
#dir=/home/work_nfs6/xlgeng/bsmu_template/exp/salmonn_v8_2_lr5e_5_new
#dir=/home/work_nfs8/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/salmonn_v10
dir=../../../../checkpoint/wenet_gxl_salmonn/salmonn_v15/5_epoch
mkdir -p $dir
#train_config=conf/train_salmonn_v8.yaml
train_config=conf/train_salmonn_v15.yaml
#test_data_dir="/home/work_nfs8/xlgeng/data/scp_test/little_test_1000"
#test_data_dir="/home/work_nfs8/xlgeng/data/scp_test"
test_data_dir="/home/work_nfs8/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/data_list/kespeech"

decode_checkpoint_name="step_44268"
decode_checkpoint=$dir/"${decode_checkpoint_name}".pt

stage=5
stop_stage=5


echo "final checkpoint is $decode_checkpoint"
test_sets=$(echo "$test_sets" | sed 's/ /--/g')
gxl_num="081"
prompt_type=mechanical_long_prompt
prompt_type=short_prompt



gxl_num=${gxl_num}_${prompt_type}

my_named_nohup "${gxl_num}_kespeech" ./recognize_kespeech.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --prompt_type "$prompt_type"


#my_named_nohup "{$gxl_num}_test_1" ./recognize1.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
#my_named_nohup "{$gxl_num}_test_2" ./recognize2.sh --gpu_id 1 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
#my_named_nohup "{$gxl_num}_test_3" ./recognize3.sh --gpu_id 2 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
#my_named_nohup "{$gxl_num}_test_4" ./recognize4.sh --gpu_id 3 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
#my_named_nohup "{$gxl_num}_test_5" ./recognize5.sh --gpu_id 4 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
#my_named_nohup "{$gxl_num}_test_6" ./recognize6.sh --gpu_id 5 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
#my_named_nohup "{$gxl_num}_test_all" ./recognize.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage

